warnings. Thanks to Sven Joachim <svenjoac@gmx.de> for the
reminder.
- -- Rob Browning <rlb@defaultvalue.org> Sun, 02 Aug 2009 14:53:26 -0700
+ * Fix update-alternatives to reflect the fact that all the binaries
+ have manpages now. Thanks to Sven Joachim <svenjoac@gmx.de> for
+ the suggestion. Rename manpages from NAME.1FLAVOR to
+ NAME.FLAVOR.1.
+
+ -- Rob Browning <rlb@defaultvalue.org> Sun, 02 Aug 2009 16:52:20 -0700
emacs23 (23.1+1-1) unstable; urgency=low
BIN_PRIORITY=@BIN_PRIORITY@
# update-alternatives on things that collide with xemacs, other editors
-for i in ctags etags emacsclient
+for i in ${ALTERNATIVES}
do
update-alternatives \
--install /usr/bin/$i $i /usr/bin/$i.${FLAVOR} ${BIN_PRIORITY} \
--slave /usr/share/man/man1/$i.1.gz $i.1.gz \
- /usr/share/man/man1/$i.1${FLAVOR}.gz
-done
-
-for i in ${ALTERNATIVES}
-do
- test $i = ctags && continue
- test $i = etags && continue
- test $i = emacs && continue
- test $i = emacsclient && continue
- update-alternatives --install /usr/bin/$i $i /usr/bin/$i.${FLAVOR} \
- ${BIN_PRIORITY}
+ /usr/share/man/man1/$i.${FLAVOR}.1.gz
done
#DEBHELPER#
then
for i in ${ALTERNATIVES}
do
- test $i = emacs && continue
update-alternatives --remove $i /usr/bin/$i.${FLAVOR}
done
fi
install -d $(2)/usr/share/man/man1
dh_link -p$(3) \
- usr/share/man/man1/emacs.1$(flavor).gz \
+ usr/share/man/man1/emacs.$(flavor).1.gz \
usr/share/man/man1/$(flavor).1.gz
dh_link -p$(3) \
- usr/share/man/man1/emacs.1$(flavor).gz \
+ usr/share/man/man1/emacs.$(flavor).1.gz \
usr/share/man/man1/$(flavor)-$(4).1.gz
endef
$(pkgdir_common)/usr/share/info/$(info_subdir)/$$f; \
done
- perl -pi -e "s|man1/etags\\.1|man1/etags\\.1$(flavor)|" \
- $(pkgdir_common)/usr/share/man/man1/ctags.1$(flavor)
+ perl -pi -e "s|man1/etags\\.1|man1/etags\\.$(flavor)\\.1|" \
+ $(pkgdir_common)/usr/share/man/man1/ctags.$(flavor).1
cd $(pkgdir_common)/usr/share/man/man1/ && \
- for f in *.1; do mv $$f $${f}$(flavor); done
+ for f in *.1; do mv $$f $$(basename $${f} .1).$(flavor).1; done
# At least etc/COPYING is needed by M-x describe-copying.
rm $(pkgdir_common)/usr/share/emacs/$(runtime_ver)/etc/COPYING